<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
    <%@taglib prefix="s" uri="/struts-tags" %>  
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<script type="text/javascript">
	function saveregion(province)
	{
		var regions="";
		var regionnames="";
		var ckbs = document.getElementsByName("resions");
		for (var n = 0; n < ckbs.length; n++)
		{
			if (ckbs[n].checked == true)
			{
				regions += ckbs[n].value+",";
				regionnames+=ckbs[n].title+",";
			}
		}
		window.parent.opener.saveshowregion(province,regions,regionnames);
		window.close();
	}
</script>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>选择屏蔽地市</title>
</head>
<body>
	<table width="100%" align="center" border="0">
		<tr>
			<td align="center"><h4>选择屏蔽地市</h4></td>
		</tr>
		<tr>
			<td><hr></hr></td>
		</tr>
		
		<tr>
		<td align="left">
		
			<s:iterator value="regionlist" status="stat">
	        <s:if test="#stat.index>0&&#stat.index%5==0"></td></tr><tr><td></s:if>
	        &nbsp;&nbsp;<input type="checkbox"  
	        <s:if test="(','+regions+',').indexOf(','+code+',')!=-1">checked</s:if> 
	        name="resions" id="resions" value="<s:property value="code" />" title="<s:property value="name" />">&nbsp;<s:property value="name" />
	        </s:iterator>
        </td>
		</tr>
		<tr>
			<td>
				&nbsp;
			</td>
		</tr>
		<tr>
			<td align="center">
				<button onclick="saveregion('<s:property value="province"/>');">确定</button>
			</td>
		</tr>
	</table>
	
</body>
</html>